import request from '@/utils/request'

// 查询考勤异动规则列表
export function listNcAttendAnomalyRules(query) {
  return request({
    url: '/hr/NcAttendAnomalyRules/list',
    method: 'get',
    params: query
  })
}

// 查询考勤异动规则详细
export function getNcAttendAnomalyRules(id) {
  return request({
    url: '/hr/NcAttendAnomalyRules/' + id,
    method: 'get'
  })
}

// 新增考勤异动规则
export function addNcAttendAnomalyRules(data) {
  return request({
    url: '/hr/NcAttendAnomalyRules',
    method: 'post',
    data: data
  })
}

// 修改考勤异动规则
export function updateNcAttendAnomalyRules(data) {
  return request({
    url: '/hr/NcAttendAnomalyRules',
    method: 'put',
    data: data
  })
}

// 删除考勤异动规则
export function delNcAttendAnomalyRules(id) {
  return request({
    url: '/hr/NcAttendAnomalyRules/' + id,
    method: 'delete'
  })
}
